﻿@using tour.szhome.common;
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title--深圳周边旅游地产综合信息服务平台</title>
    <link type="image/x-icon" rel="shortcut icon" href="http://www.szhome.com/favicon.ico" />
    @CommPath.StyleImport("manage/css/index.css")
    @CommPath.StyleImport("public/css/dialog.css")
    @CommPath.StyleImport("public/css/pagination.css")
</head>
<body>
<div>
    <table id="top_box">
        <tbody>
            <tr>
                <td>
                    <div class="logo"><img id="Image1" src="@CommPath.FileImport("manage/images/logo_index.gif")" style="height:39px;width:186px;border-width:0px;" title="首页"></div>
                </td>
                <td>
                    <div class="status">
                        <ul>
                            <li>
                                <label>用户名：@ViewBag.UserName</label>
                                <label class="password"><a href="/manage/home/changepwd">修改密码</a></label>
                                <label class="logout"><a href="javascript:void(0)" id="logout">注销</a></label>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div class="main_box" style="float:left;">
        <div class="sidebar">
        <div class="sidebar_nav">
            <ul>
            <li class=""><a href="/manage/project">项目管理</a></li>
            <li class=""><a href="/manage/landscape">景区管理</a></li>
            <li class=""><a href="/manage/slide">首页广告图</a></li>
            <li class=""><a href="/manage/activities">首页同城活动</a></li>
            <li class=""><a href="/manage/strategy">首页查攻略</a></li>
            <li class=""><a href="/manage/album">首页翻相册</a></li>
            </ul>
        </div>
        </div>
</div>
<div class="main_box1" style="float:left;">
    <div id="main-content">
        @CommPath.ScriptImport("web/js/jquery-1.4.2.min.js")
        @CommPath.ScriptImport("public/js/dialog.js")
        @CommPath.ScriptImport("public/js/jquery.pagination.js")
        @RenderBody()
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $("#logout").bind("click", function () {
            logout();
        });

        $(".logo").bind("click", function () {
            window.location.href = "/manage/home";
        });

        var domainUrl = "http://" + document.domain;
        var currentUrl = window.location.href;
        var obj = $(".sidebar_nav li a[href='" + currentUrl.replace(domainUrl, "") + "']");
        obj.parent().addClass("linked");
    });

    function logout() {
        $.post("/manage/login/logout", function (data) {
            if (data) {
                window.location.href = 'http://t.szhome.com/manage';
            }
            else {
                dlg.Msg.Err("操作失败！");
            }
        });
    }
</script>
</body>
</html>
